import { DEFAULT_LAYOUT } from '@/router/constans';

export default {
  path: '/sys',
  name: 'sys',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.sys',
    requiresAuth: true,
    icon: 'icon-list',
    order: 2,
  },
  children: [
    {
      path: 'sysUser', // The midline path complies with SEO specifications
      name: 'sysUser',
      component: () => import('@/views/object/index.vue'),
      meta: {
        locale: 'menu.sys.sysUser',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'sysRole',
      name: 'sysRole',
      component: () => import('@/views/object/role.vue'),
      meta: {
        locale: 'menu.sys.sysRole',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'LuYou',
      name: 'LuYou',
      component: () => import('@/views/object/LuYou.vue'),
      meta: {
        locale: 'menu.sys.sysrouting',
        requiresAuth: true,
        roles: ['*'],
      },
    }
    ,
    {
      path: 'sysApi',
      name: 'sysApi',
      component: () => import('@/views/object/swagger.vue'),
      meta: {
        locale: 'menu.sys.swaggerName',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'onlinelisting',
      name: 'onlinelisting',
      component: () => import('@/views/object/onlinelisting.vue'),
      meta: {
        locale: 'menu.sys.onlinelisting',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'log',
      name: 'log',
      component: () => import('@/views/object/log.vue'),
      meta: {
        locale: 'menu.sys.log',
        requiresAuth: true,
        roles: ['*'],
      },
    }
    ,
    {
      path: 'datasource',
      name: 'datasource',
      component: () => import('@/views/object/datasource.vue'),
      meta: {
        locale: 'menu.sys.datasource',
        requiresAuth: true,
        roles: ['*'],
      },
    }
    ,
    {
      path: 'file',
      name: 'file',
      component: () => import('@/views/object/file.vue'),
      meta: {
        locale: 'menu.sys.file',
        requiresAuth: true,
        roles: ['*'],
      },
    }
    ,
    {
      path: 'table',
      name: 'table',
      component: () => import('@/views/object/createCode.vue'),
      meta: {
        locale: '代码生成',
        requiresAuth: true,
        roles: ['*'],
      },
    }   
    
    ,
    {
      path: 'notice',
      name: 'notice',
      component: () => import('@/views/object/notice.vue'),
      meta: {
        locale: '通知管理',
        requiresAuth: true,
        roles: ['*'],
      },
    }
    
  ],
};
